package cn.gson.work.model.pojos;

import javax.persistence.*;
import java.util.List;
import java.util.Objects;

@Entity
public class Huiyishi {
    private Long sid;
    private String sname5;
    private String srl;
    private String sgly3;
    private Long sdh;

    @Id
    @Column(name = "SID")
    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    @Basic
    @Column(name = "SNAME5")
    public String getSname5() {
        return sname5;
    }

    public void setSname5(String sname5) {
        this.sname5 = sname5;
    }

    @Basic
    @Column(name = "SRL")
    public String getSrl() {
        return srl;
    }

    public void setSrl(String srl) {
        this.srl = srl;
    }

    @Basic
    @Column(name = "SGLY3")
    public String getSgly3() {
        return sgly3;
    }

    public void setSgly3(String sgly3) {
        this.sgly3 = sgly3;
    }

    @Basic
    @Column(name = "SDH")
    public Long getSdh() {
        return sdh;
    }

    public void setSdh(Long sdh) {
        this.sdh = sdh;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Huiyishi huiyishi = (Huiyishi) o;
        return Objects.equals(sid, huiyishi.sid) &&
                Objects.equals(sname5, huiyishi.sname5) &&
                Objects.equals(srl, huiyishi.srl) &&
                Objects.equals(sgly3, huiyishi.sgly3) &&
                Objects.equals(sdh, huiyishi.sdh);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sid, sname5, srl, sgly3, sdh);
    }
}
